const Mock = require("mockjs");
const { Random } = Mock;
const getComponentList = require("../../data/componentList");

module.exports = [
  // 获取问卷详情
  {
    path: "/api/question/:id",
    method: "get",
    response() {
      return {
        code: 200,
        data: {
          fe_id: Random.id(),
          title: Random.ctitle(),
          desc: "问卷描述",
          js: "",
          css: "",
          isDeleted: false,
          isPublished: true,
          componentList: getComponentList(),
        },
      };
    },
  },
];
